import {taskService} from '#/service'
export default {
  created(){
    this.id=this.$route.params.id;
    if(!this.id){
      return this.$router.push({
        name:'orderDetails',
        query:{
          type:this.type
        }
      })
    }
    taskService.task({
      method:'get',
      url:'/buyertask/buyer_task/'+this.id,
      success:(res)=>{
        this.data=res.data
      }
    })
  },
}
